package itdfq.dfq.Behavior_Patters.mingling;

/**
 * @Author GocChin
 * @Date 2021/5/7 11:40
 * @Blog: itdfq.com
 * @QQ: 909256107
 * @Descript:
 */
public class Controller {
    private  AbMingling open,hot,cold;
    public Controller(AbMingling open, AbMingling hot, AbMingling cold) {
        this.open = open;
        this.hot = hot;
        this.cold = cold;
    }
    public void open(){
        open.run();
    }
    public void hot(){
        hot.run();
    }
    public void cold(){
        cold.run();
    }
}
